<template>
	<view>
		<carHeader :title="'输入核销码'"></carHeader>
		<view class="top">
			<view class="input1">
				输入核销码
			</view>
			<view class="u-demo-block__content" >
				<!-- #ifndef APP-NVUE -->
				<u-input>
				<!-- #endif -->
					<!-- #ifdef APP-NVUE -->
					<u--input placeholder="后置插槽">
					<!-- #endif -->
						<template slot="suffix">
							<u-button @tap="getCode" :text="tips" type="success" >识别</u-button>
						</template>
				<!-- #ifndef APP-NVUE -->
					</u-input>
				<!-- #endif -->
				<!-- #ifdef APP-NVUE -->
				</u--input>
				<!-- #endif -->
			</view>
		</view>


	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods:{
			getCode(){
				uni.navigateTo({
					url:"/pages/hexiao1/hexiao1"
				})
			}
		}
	}
</script>

<style lang="scss">
	.top {

		width: 720rpx;
		height: 160rpx;
		background-color: white;
		position: absolute;
		border-radius: 30rpx;
		left: 15rpx;
		top: 90rpx;
		display: flex;
		
		justify-content: center;
		align-items: center;
		.input1{
			color: #2E80F9;
		}
		.u-input{
			height: 60rpx;
			border-radius: 50rpx;
			
			.u-button{
				background-color: #2E80F9;
				color: white;
				width: 150rpx;
				border-radius: 40rpx;
				left: 15rpx;
			}
			
		}
	}
</style>